import service from "@/utils/request";

export const useHistoryPageApi = (queryData: {}) => {
  return service({
    url: "/v0/history/page",
    method: "GET",
    params: queryData,
  });
};

export const useHistoryExportApi = (queryData: {}) => {
  return service({
    url: "/v0/history/export",
    method: "POST",
    data: queryData,
  });
};

export const useHistoryExchangeApi = (id: number) => {
  return service({
    url: "/v0/history/exchange",
    method: "GET",
    params: { id }
  });
};
